package utils
{
	import model.assets.AssetsModel;
	
	import mx.controls.Alert;

	public class DialogUtil
	{
		public function DialogUtil()
		{
		}
		
		/**
		 *  弹出错误
		 **/
		public static function openError(msg:String, title:String):void
		{
			Alert.show(msg, 
				title,  
				4,
				null,
				null,
				AssetsModel.IconCancelClass);
		}
		
		/**
		 *  弹出警告
		 **/
		public static function openWarning(msg:String):void
		{
			Alert.show(msg, 
				"警告",  
				4,
				null,
				null,
				AssetsModel.IconWarningClass);
		}
		
		/**
		 *  弹出信息框
		 **/
		public static function openInfo(msg:String, title:String):void
		{
			Alert.show(msg, 
				title,  
				4,
				null,
				null,
				AssetsModel.IconInfoClass);
		}
	}
}